<div id="header">
    <div class="inner">
        <div class="logo f-l">
            <a href="${base}" title="Morketing"><h1></h1></a>
        </div>
        <ul class="nav f-l clearfix">
            <ul id="menu-mainmenu" class="menu"><li class="<#if select?? && select == 'home'>active</#if>"><a href="${base}/home">首页</a></li>
                <li <#if select?? && select == 'posts'>class="active"</#if>><a>新闻</a>
                    <ul class="sub-menu drop arrow-top">
                        <li><a href="${base}/posts/list/news">资讯</a></li>
                        <li><a href="${base}/posts/list/interview">对话</a></li>
                        <li><a href="${base}/posts/list/special-column">观点</a></li>
                        <li><a href="${base}/posts/list/personnel">人事</a></li>
                        <li><a href="${base}/posts/list/case">案例</a></li>
                    </ul>
                </li>
                <li <#if select?? && select == 'db'>class="active"</#if>><a>数据库</a>
                    <ul class="sub-menu drop arrow-top">
                        <li><a href="${base}/product/index">产品</a></li>
                        <li><a href="${base}/people/index">大咖</a></li>
                        <li><a href="${base}/company/index">公司</a></li>
                    </ul>
                </li>
                <li <#if select?? && select == 'moke'>class="active"</#if>><a href="${base}/moke/index">魔客</a></li>
                <li <#if select?? && select == 'jingnang'>class="active"</#if>><a>社区</a>
                    <ul class="sub-menu drop arrow-top">
                        <li><a href="${base}/baike/index">百科</a></li>
                        <li><a href="${base}/question/index">问答</a></li>
                    </ul>
                </li>
                <li <#if select?? && select == 'event'>class="active"</#if>><a title="活动列表" href="${base}/event/index">活动</a></li>
                <li <#if select?? && select == 'hire'>class="active"</#if>><a href="${base}/hire/index">招聘</a></li>
                <li <#if select?? && select == 'about'>class="active"</#if>><a title="关于我们" href="${base}/aboutUs">关于我们</a></li>
            </ul>
        </ul>
        <div class="nav-collapse">
            <form action="${base}/search" method="get" id="search_form">
                <div class="search">
                    <i class="fa fa-search"></i>
                    <input type="text" name="keywords" id="key_words">
                </div>
            </form>
            <div class="mune"></div>
        </div>
        <div class="header-right f-r clearfix">
            <div class="login f-l">
                <#if currentUser??>
                    <a href="${base}/profile">
                        <#if currentUser.nickName?length lt 5>
                            ${(currentUser.nickName)?default("")}
                        <#else>
                            ${(currentUser.nickName[0..2])?default("")}...
                        </#if>
                            <i class="has-mail"></i>
                    </a>&nbsp;&nbsp;
                    <#if currentUser.roleId??>
                        <#if currentUser.roleId == 4 || currentUser.roleId == 5>
                            <a href="${base}/system/home">进入后台</a>
                        <#else>
                            <a href="${base}/logout">登出</a>
                        </#if>
                    </#if>
                <#else>
                    <a href="${base}/login">登录</a>／<a href="${base}/signup">注册</a>
                </#if>
            </div>
            <form action="${base}/search" method="get" id="search_form">
                <div class="search">
                    <i class="fa fa-search"></i>
                    <input type="text" name="keywords" id="key_words">
                </div>
            </form>
        </div>
        <div id="phone-nav"></div>
    </div>
</div>